package cn.jimu98.service.impl;

import cn.jimu98.dao.PaymentDao;
import cn.jimu98.entities.Payment;
import cn.jimu98.service.PaymentService;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @Classname PaymentServiceImpl
 * @Description TODO
 * @Date 2020/6/25 22:11
 * @Created by kaibo
 */
@Service
public class PaymentServiceImpl implements PaymentService {
    @Resource
    private PaymentDao paymentDao;
    //写
    public int create(Payment payment){
        return paymentDao.create(payment);
    }
    //读
    public Payment getPaymentById(@Param("id")Long id){
        return paymentDao.getPaymentById(id);
    }
}
